/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.beans;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author pguerreroj
 * CREATE TABLE Comanda (
    NumCom integer NOT NULL,
    Estat boolean DEFAULT true NOT NULL,
    Date date NOT NULL,
    CodiPeca integer NOT NULL,
    IdCapTaller integer NOT NULL,
    IdProveidor integer NOT NULL,
    OrdreReparacio integer NOT NULL,
    TipusReparacio boolean DEFAULT true NOT NULL
    );
 */
public class Comanda implements Serializable{
    
    private static final long serialVersionUID = 1L;
    private int numCom;
    private boolean estat;
    private Date date;
    private int codiPeca;
    private int idCapTaller;
    private int idProveidor;
    private int ordreReparacio;
    private boolean tipusReparacio;

    public Comanda() {
    }

    public Comanda(int numCom, boolean estat, Date date, int codiPeca, int idCapTaller, int idProveidor, int ordreReparacio, boolean tipusReparacio) {
        this.numCom = numCom;
        this.estat = estat;
        this.date = date;
        this.codiPeca = codiPeca;
        this.idCapTaller = idCapTaller;
        this.idProveidor = idProveidor;
        this.ordreReparacio = ordreReparacio;
        this.tipusReparacio = tipusReparacio;
    }

    public int getNumCom() {
        return numCom;
    }

    public boolean isEstat() {
        return estat;
    }

    public Date getDate() {
        return date;
    }

    public int getCodiPeca() {
        return codiPeca;
    }

    public int getIdCapTaller() {
        return idCapTaller;
    }

    public int getIdProveidor() {
        return idProveidor;
    }

    public int getOrdreReparacio() {
        return ordreReparacio;
    }

    public boolean isTipusReparacio() {
        return tipusReparacio;
    }

    public void setNumCom(int numCom) {
        this.numCom = numCom;
    }

    public void setEstat(boolean estat) {
        this.estat = estat;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setCodiPeca(int codiPeca) {
        this.codiPeca = codiPeca;
    }

    public void setIdCapTaller(int idCapTaller) {
        this.idCapTaller = idCapTaller;
    }

    public void setIdProveidor(int idProveidor) {
        this.idProveidor = idProveidor;
    }

    public void setOrdreReparacio(int ordreReparacio) {
        this.ordreReparacio = ordreReparacio;
    }

    public void setTipusReparacio(boolean tipusReparacio) {
        this.tipusReparacio = tipusReparacio;
    }
    
    
}
